<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
	<title>安徽大学研究生联合培养网站-后台管理系统</title>
	<script src="${pageContext.request.contextPath}/scripts/jquery.js" type="text/javascript"></script>
    
    <link rel="stylesheet" href="${pageContext.request.contextPath}/editor/themes/default/default.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/editor/plugins/code/prettify.css" />
	<script charset="utf-8" src="${pageContext.request.contextPath}/editor/kindeditor.js"></script>
	<script charset="utf-8" src="${pageContext.request.contextPath}/editor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="${pageContext.request.contextPath}/editor/plugins/code/prettify.js"></script>
    
    <link href="${pageContext.request.contextPath}/styles/rightMain.css" rel="stylesheet" type="text/css"> 
    <link href="${pageContext.request.contextPath}/styles/pageDivB.css" rel="stylesheet" type="text/css" />
    <script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="detail"]', {
				cssPath : '${pageContext.request.contextPath}/editor/plugins/code/prettify.css',
				uploadJson : '${pageContext.request.contextPath}/editor/jsp/upload_json.jsp',
				fileManagerJson : '${pageContext.request.contextPath}/editor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['form'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['form'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
<style>
body{
	background: #eef2fb;
}
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="${pageContext.request.contextPath}/styles/images/mail_leftbg.gif"><img src="${pageContext.request.contextPath}/styles/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="${pageContext.request.contextPath}/styles/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">添加导师信息 </div></td>
      </tr>
    </table>
    </td>
    <td width="16" valign="top" background="${pageContext.request.contextPath}/styles/images/mail_rightbg.gif"><img src="${pageContext.request.contextPath}/styles/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="${pageContext.request.contextPath}/styles/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top" width="80%">&nbsp;</td>
        <td width="5%">&nbsp;</td>
        <td valign="top" width="15%">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" valign="top" class="left_bt">请填写新导师，填写完成后点击提交即可完成添加</span>
        <br><br>
	        <s:form name="form" action="teacherAction_add">
	       		所属机构：<s:select name="instituteId" list="#instituteList" 
	       						listKey="id" listValue="name" headerKey="" headerValue="请选择部门"></s:select><br><br>
	        	姓&nbsp;&nbsp;&nbsp;&nbsp;名：<s:textfield name="name"></s:textfield>
	        	<br> 
	        	<br>
	        	出生日期：<s:textfield name="birthDay"></s:textfield><br><br>
	        	性&nbsp;&nbsp;&nbsp;&nbsp;别：<s:radio name="gender" list="%{#{'1':'男','0':'女'}}" value="1"></s:radio>
	        	<br> 
	        	<br>
	        	头&nbsp;&nbsp;&nbsp;&nbsp;像：<s:textfield name="headImage"></s:textfield>
	        	<br> 
	        	<br>
	        	职&nbsp;&nbsp;&nbsp;&nbsp;位：<s:textfield name="position"></s:textfield>
	        	<br> 
	        	<br>
	        	研究方向：<s:textfield name="researchDirection"></s:textfield>
	        	<br> 
	        	<br>
	        	联系电话：<s:textfield name="phoneNum"></s:textfield>
	        	<br> 
	        	<br>
	        	邮&nbsp;&nbsp;&nbsp;&nbsp;箱：<s:textfield name="email"></s:textfield>
	        	<br> 
	        	<br>
	        	学&nbsp;&nbsp;&nbsp;&nbsp;历：<s:textfield name="edutionBackground"></s:textfield>
	        	<br> 
	        	<br>
	        	导师简介：(主页显示,最好少于100字，显示效果较<br><br><s:textarea name="shotdetail" rows="10" cols="80" ></s:textarea>
	        	<br> 
	        	<br>
	        	导师详细介绍：<br><br>
				<s:textarea name="detail" style="width:720px;height:550px;"></s:textarea><br><br>
	        	<div>
	        	<s:submit value="提交" ></s:submit>&nbsp;&nbsp;&nbsp;&nbsp;
	        	<s:reset value="清空" ></s:reset></div>
			</s:form>
        </td>
        <td width="5">&nbsp;</td>
        <td width="15%" valign="top"><table width="100%" height="144" border="0" cellpadding="0" cellspacing="0" class="line_table">
          <tr>
            <td height="5" colspan="2">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      
      <tr>
        <td height="40" colspan="4"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="${pageContext.request.contextPath}/styles/images/icon-mail2.gif" width="16" height="11"> 管理员QQ：403278819<br>
              <img src="${pageContext.request.contextPath}/styles/images/icon-phone.gif" width="17" height="14"> <a href="indexAction_index.action" target="_bank">进入前台</a></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="${pageContext.request.contextPath}/styles/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="${pageContext.request.contextPath}/styles/images/mail_leftbg.gif"><img src="${pageContext.request.contextPath}/styles/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="${pageContext.request.contextPath}/styles/images/buttom_bgs.gif"><img src="${pageContext.request.contextPath}/styles/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="${pageContext.request.contextPath}/styles/images/mail_rightbg.gif"><img src="${pageContext.request.contextPath}/styles/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>
